#pragma once

#include "GeneratedFiles/ui_LogWidgetBar.h"

#include <QtGui/QSplitter>
#include <QTableView>
#include <QAbstractTableModel>
#include <QtGui/QToolBar>
#include <QAction>

class LogWidgetModel:public QAbstractTableModel 
{
private:
	QList< int > m_Buffer;
public:
	LogWidgetModel();
	int rowCount(const QModelIndex& parent) const;

	QVariant data(const QModelIndex &index, int role) const;
	int columnCount(const QModelIndex &parent) const;
	QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
};

class LogWidget : public QWidget ,public Ui::LogWidgetBar
{
public:
	LogWidget(QWidget* parent = NULL);
	~LogWidget();
	QSize sizeHint() const {
		return size();
	}
private:
 	LogWidgetModel *model;
	QToolBar *InfoBar;
};

// class LogWidget:public QSplitter
// {
// 	Q_OBJECT
// public:
// 	LogWidget();
// 	~LogWidget();
// private:
// 	QTableView *view;
// 	LogWidgetModel *model;
// 	LogWidgetBar *InfoBar;
// };
